/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.spider.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * userAgent维护Entity
 * @author hongye
 * @version 2017-04-12
 */
public class UserAgent extends DataEntity<UserAgent> {
	
	private static final long serialVersionUID = 1L;
	private String userAgentName;		// user_agent名称
	private String userAgent;		// user_agent
	private String browserType;		// 浏览器类型
	private String browserVersion;		// 浏览器版本
	private Integer ismobile;		// 是否手机
	
	public UserAgent() {
		super();
	}

	public UserAgent(String id){
		super(id);
	}

	@Length(min=1, max=30, message="user_agent名称长度必须介于 1 和 30 之间")
	public String getUserAgentName() {
		return userAgentName;
	}

	public void setUserAgentName(String userAgentName) {
		this.userAgentName = userAgentName;
	}
	
	@Length(min=1, max=100, message="user_agent长度必须介于 1 和 100 之间")
	public String getUserAgent() {
		return userAgent;
	}

	public void setUserAgent(String userAgent) {
		this.userAgent = userAgent;
	}
	
	@Length(min=0, max=20, message="浏览器类型长度必须介于 0 和 20 之间")
	public String getBrowserType() {
		return browserType;
	}

	public void setBrowserType(String browserType) {
		this.browserType = browserType;
	}
	
	@Length(min=0, max=10, message="浏览器版本长度必须介于 0 和 10 之间")
	public String getBrowserVersion() {
		return browserVersion;
	}

	public void setBrowserVersion(String browserVersion) {
		this.browserVersion = browserVersion;
	}
	
	public Integer getIsmobile() {
		return ismobile;
	}

	public void setIsmobile(Integer ismobile) {
		this.ismobile = ismobile;
	}
	
}